package com.hospital.schedule.module.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hospital.common.pojo.TRegistration;
import com.hospital.common.vo.schedule.module.AddLeaveRecordDto;
import com.hospital.schedule.module.mapper.TRegistrationMapper;
import com.hospital.schedule.module.service.ITRegistrationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 挂号预约表 服务实现类
 * </p>
 *
 * @author author
 * @since 2025-09-13
 */
@Service
public class TRegistrationServiceImpl extends ServiceImpl<TRegistrationMapper, TRegistration> implements ITRegistrationService {
    @Autowired
    private TRegistrationMapper registrationMapper;

    @Override
    public List<TRegistration> findDoctorByAddLeaveRecord(AddLeaveRecordDto addLeaveRecordDto) {
        return registrationMapper.findDoctorByAddLeaveRecord(addLeaveRecordDto);
    }
}
